package org.example.seckilljava.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("t_order")
public class Order {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long seller;
    private Long buyer;
    private Long goodsId;
    private String goodsNum;
    private Integer num;
    private String orderNum;
    private Float price;
    private Integer status;
    private LocalDateTime createTime;
    private LocalDateTime modifyTime;

    public Order() {
    }

    public Order(Long seller, Long buyer, Long goodsId, String goodsNum, Integer num, String orderNum, Float price, Integer status) {
        this.seller = seller;
        this.buyer = buyer;
        this.goodsId = goodsId;
        this.goodsNum = goodsNum;
        this.num = num;
        this.orderNum = orderNum;
        this.price = price;
        this.status = status;
    }
}